#ifndef PM_PANEL_WORK_REQUEST_H_INCLUDED
#define PM_PANEL_WORK_REQUEST_H_INCLUDED

#include "panelworkrequestgui.h"
#include "main.h"
#include "pm/workrequest.h"

class PanelWorkRequest : public PanelWorkRequestGui
{
	enum COLS {
		COL_NAME,
		COL_AMOUNT,
		COL_DATE
	};
	
public:
	PanelWorkRequest(wxWindow* parent);

protected:
	void AddWR(const pm::WorkRequest& wr);
	void SetWR(long item, const pm::WorkRequest& wr);

	void OnProjectLoaded(wxCommandEvent& event);
	void OnWorkRequestAdded(pmEvent<pm::WorkRequest>& event);

	virtual void OnAddWR( wxCommandEvent& event );
	virtual void OnDelWR( wxCommandEvent& event );
};

#endif // PM_PANEL_WORK_REQUEST_H_INCLUDED
